It is I think, a mistake to give every incident a profound meaning in a mythical story, and most certainly not to reckon that it is from God. Incidents and objects in myth are often explanations attempting to reconcile contradictions.
Adam and Eve clearly never existed and neither did the fabled tree. Nevertheless it is possible to unpick the events, characters and components of this story as a creation myth which points to the mythical creator's right to determine what his innocent creation must and must not do. This is something we were all confronted with as we grew up; we all asked ourselves-- but not necessarily at one moment, the basic philosophical question: what is the best way to live our lives? What should we do and what must we not do?
The Biblical story has been used by Jews and Christians to capture the allegiance of young people in turning them towards "God" as ultimate authority.
I might add that since the Age of the Enlightenment, "reason" has proved to be a more reliable authority.